package com.bing.jh.controller;

import com.bing.bingPro.common.BaseResult;
import com.bing.jh.entity.dto.TZwArchivesDto;
import com.bing.jh.entity.vo.DzWzCostDtlVO;
import com.bing.jh.service.DzWzCostDtlService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 装维人员四象限分析-装维人员成本明细
 */
@RestController
@RequestMapping("dzWzCostDtl")
public class DzWzCostDtlController {

    @Resource
    private DzWzCostDtlService dzWzCostDtlService;

    @PostMapping("/detail")
    public BaseResult<List<DzWzCostDtlVO>> detail(@RequestBody TZwArchivesDto tZwArchives) {
        return new BaseResult<>(dzWzCostDtlService.detail(tZwArchives));
    }

    @PostMapping("/dateList")
    public BaseResult<List<String>> dateList() {
        return new BaseResult<>(dzWzCostDtlService.dateList());
    }
}
